<template>
	<view class="chooseBox">
		<view class="allBox">
			<button @click="joinClick" :data-is-half-page="true" open-type="joinGroup" class="joinBtn" :group-id="dyDiverInfo.groupId"></button>
			<image style="width: 630rpx;height: 130rpx;position: relative;z-index: 9;" src="https://res.qiguoread.com/staticResources/fellow_townsman/image/uni/toutiao/jinqun/bg_invite.png"></image>
		</view>
	</view>
</template>

<script>
	export default {
		name:"chatBtnFixed",
		props:{
			dyDiverInfo:{
				type:[String,Object],
				default:''
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			joinClick(){
				getApp().globalData.dyDiverInfo6 = '';
				this.$statis({
					action: 'CLICK',
					position: 'DY_DIVERSION_DY_GROUP/DY_LEFT_CORNER_RETURN',
					taskId:this.dyDiverInfo.id
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.joinBtn{
		opacity: 0;
		z-index:10;
		position: absolute;
		width: 100%;
		height: 100%;
	}
	.allBox{
		position: relative;
	}
	.chooseBox{
		width: 630rpx;
		height: 130rpx;
		position:relative;
		right: 0;
		left: 0;
		margin: 30rpx auto;
	}
</style>
